Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): remove accessible anchors via keyboard #1991

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Nov 14, 2019

Motivation

ARIA hidden element must not contain focusable elements

Stop hidden anchors from being keyboard accessible, because now control via Tab is not obvious, since the anchors are hidden.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Try switching to elements using Tab key, anchors should not get focus.

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 14, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 4d94118

https://deploy-preview-1991--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 4d94118

https://deploy-preview-1991--docusaurus-preview.netlify.com

@lex111 lex111 added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Nov 14, 2019
Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Has been annoyed with it tabbing the invisible anchor
image

@endiliey endiliey merged commit 11e84eb into facebook:master Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants